package com.example.review.controller;

import com.example.review.entity.UserInfo;
import com.example.review.service.ReviewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ExampleController {

    @Autowired
    private ReviewService reviewService;

    @GetMapping("/secondDay")
    public UserInfo getUserInfo() {
        try {
            return reviewService.getUserInfo();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}